﻿using Chromium.Remote.Event;
using M5.GeminiHybird.Core.Attribute;
using M5.GeminiHybird.Core.JavascriptEvent;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HybirdFormDemo.JsEvent
{
    class qqTestEvent : BaseJavescriptEvent
    {
        [JavascriptMethod]
        public void Event(object sender, CfrV8HandlerExecuteEventArgs e)
        {
            var a = e.Arguments[0].StringValue;
            MessageBox.Show(a);
        }

        [JavascriptMethod]
        public void Index(string msg)
        {
            MessageBox.Show(msg);
        }
    }
}
